//*****************************************************************************
//
// ABEC3 Observation Script
// Project: IB-Cone-CircSym
//
//*****************************************************************************

// This file controls the observation.
// Observation files are loaded separately and can be altered
// without the need of resolving.

// Driving is via LE-Script

// Node list of spatial points for spectral observation points.
// In 3D each line consists of <Index> <Coord1> <Coord2> <Coord3>.
// In circular symmetric case there are only two coordinates
// corresponding to <axial> <radial>.

Nodes "Contour"
  Scale=1mm              // Millimeter
  Shift=-70mm
  30      2.0   35.0     // Radius dust cap
  40     75.0  125.0     // Cone radius
  100    75.0  500.0     // Contour map   75  500
  110   500.0  500.0

Nodes "Spectrum"
  Scale=1mm        // Millimeter
  1001    300.0   10.0     // Spectrum point
  1002   1000.0   50.0


// VACS

// Spectra are output to VACS. In order to make this work you would need
// Vacs.exe or VacsViewer.exe installed, which you can download from
//   http://www.randteam.de

// Because VACS works as a server it needs some link-ID to recognize connections between
// an observation point definition here in ABEC and a curve in VACS. These links can be
// any string without blanks.

// "Control_Spectrum" provides a tree-view-folder in VACS.

Control_Spectrum
  Name="Cone-IB-Test"
  ID="Cone_IB_Test"


// Spectrum of sound pressure at a set of observation points.
// Each line consists of <Index> <RefIndex> <VACS link-ID>. The ref-index
// takes reference to the node-list.

BE_Spectrum "Points"
  PlotType=Curves
  RefNodes="Spectrum"
  GraphHeader="Sample points"
  1  1001  ID=101
  2  1002  ID=102


// Radiation impedance of diaphragm-front side.
// With RadImpType=Normalized the values are normalized to roh*c.

Radiation_Impedance 
  GraphHeader="Radiation Impedance"
  BodeType=Complex
  Range_min=-1;  Range_max= 2
  RadImpType=Normalized
  101 1001 1001  ID=201


// Spectrum of sound pressure at a range of circular distributed
// observation points. This results in a contour-frequency-directivity-plot
// in VACS where details can be observed and processed further.
// Note, that in the circular-symmetric case all elevation angles
// would yield identical results.

BE_Spectrum "Directivity"
  PlotType=Directivity
  PolarRange=-90, 90, 37
  FarField      // at large distance, amplitude normalized to 1m, phase to origin.
  BasePlane=Pos
  101  Inclination=0.0   ID=301


// Lumped Element Observations
// Current into port 1 of Driver, which are the electrical terminals.

LE_Spectrum "Current"
  GraphHeader="Current into driver"
  AnalysisType=Current
  BodeType=Ampl
  System="S1"
  101  ElName="Drv1"  Port=1   ID=401


// Voltage across driver-terminals, which is not constant because of high-pass.

LE_Spectrum
  GraphHeader="Voltage across driver terminals"
  AnalysisType=Voltage
  BodeType=Ampl
  System="S1"
  101  ElName="Drv1"  Port=1   ID=501
